package com.tb.dubbo;

import com.tb.pojo.Order;
import java.util.List;
import java.util.Map;
/**
 * 订单状态改变接口
 */
public interface IOrderService {

    /**
     *
     * @param id 订单编号
     *        orderStatus 订单状态
     * @return
     */
    int updateOrderStatus(Order order);

    //新增订单
    int insertOrders(Order order);

    //获取用户所有订单信息
    Map<String, Object> getAllOrder(Map<String, Object> map);

    Map<String, Object> getOrderByStatusId(Map<String, Object> map);

    //获取插入数据前的主键值
    int retrunId();

    Map<String, Object> getOrderByOid(Map<String, Object> map);

    Map<String, Object> getAllUserOrder(Map<String, Integer> map);

    //更新订单发送地址
    int updateAddress(Order order);
}
